package com.vhall.component.entity.account.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * admins 表对应实体
 *
 * @author yongzheng.xu
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AdminVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty(value = "admin_id")
    private Integer adminId;

    @JsonProperty(value = "admin_name")
    private String adminName;

    @JsonProperty(value = "nick_name")
    private String nickName;

    private String password;

    private String mobile;

    private String email;

    private String token;

    @JsonProperty(value = "token_expire")
    private LocalDateTime tokenExpire;

    @JsonProperty(value = "role_id")
    private Integer roleId;

    @JsonProperty(value = "last_ip")
    private String lastIp;

    @JsonProperty(value = "last_time")
    private LocalDateTime lastTime;

    @JsonProperty(value = "login_num")
    private Integer loginNum;

    @TableField("status")
    private Integer status;

    @JsonProperty("created_at")
    private LocalDateTime createdAt;

    @JsonProperty("updated_at")
    private LocalDateTime updatedAt;

}
